import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { PermissionEnum } from '@/enums/permissionEnum'

const route: AppRouteModule = {
  path: '/organization',
  name: 'organization',
  component: LAYOUT,
  redirect: '/organization',
  meta: {
    orderNo: 4000,
    icon: 'ant-design:apartment-outlined',
    title: '企业管理',
    permissions: [PermissionEnum.ORGANIZATION_VIEW, PermissionEnum.ORGANIZATION_MANAGE],
  },
  children: [
    {
      path: '',
      name: 'organization',
      component: () => import('@/views/wex/organization/index.vue'),
      meta: {
        title: '企业管理',
        hideMenu: true,
        permissions: [PermissionEnum.ORGANIZATION_VIEW, PermissionEnum.ORGANIZATION_MANAGE],
      },
    },
  ],
};

export default route;
